package LeetCode刷题;

/**
 * @program: Java_Study
 * @author: Xiaofan
 * @createTime: 2022-01-19 10:25
 * @description: Functions of this class is
 * 使用递归解法：
 * ！！！！！！！！！！！！运用了：逻辑运算符的短路性质。！！！！！！！！！！
 * class Solution {
 *
 *     public int sumNums(int n) {
 *         int sum = n;
 *         boolean flag = n > 0 && (sum += sumNums(n - 1)) > 0;
 *         return sum;
 *     }
 * }
 **/
public class No计算1加2加3加4限定条件 {
}